package com.rockcent.mall.lib.domain;

import com.rockcent.common.domain.IDEntityMall;
import com.rockcent.mall.lib.domain.enumclass.MallMemberStatus;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Date;

/**
 * Created by DK on 17/3/7.
 * 平台付费标准
 */
@Entity
@Table(name = "mall_member_pay_standard")
@DynamicInsert
@DynamicUpdate
public class MallMemberPayStandard extends IDEntityMall {

    @Column(columnDefinition = "bigint comment '平台ID'")
    private Long mallId;

    @Column(columnDefinition = "DECIMAL(30,10) comment '基础服务费'")
    private BigDecimal baseServiceFee;

    @Column(columnDefinition = "varchar(200) comment '基础服务费系数'")
    private String baseServiceFeeNum;

    @Column(columnDefinition = "DECIMAL(30,10) comment '商户服务费/户'")
    private BigDecimal businessServiceFee;

    @Column(columnDefinition = "varchar(200) comment '商户服务费系数'")
    private String businessServiceFeeNum;

    @Column(columnDefinition = "varchar(200) comment '交易佣金率'")
    private String dealResellRate;

    @Column(columnDefinition = "bigint(20) comment '平台商户ID'")
    private Long mallMemberId;

    @Column(columnDefinition = "bigint(20) comment '操作人ID'")
    private Long operatorId;

    public Long getMallId() {
        return mallId;
    }

    public void setMallId(Long mallId) {
        this.mallId = mallId;
    }

    public BigDecimal getBaseServiceFee() {
        return baseServiceFee;
    }

    public void setBaseServiceFee(BigDecimal baseServiceFee) {
        this.baseServiceFee = baseServiceFee;
    }

    public String getBaseServiceFeeNum() {
        return baseServiceFeeNum;
    }

    public void setBaseServiceFeeNum(String baseServiceFeeNum) {
        this.baseServiceFeeNum = baseServiceFeeNum;
    }

    public BigDecimal getBusinessServiceFee() {
        return businessServiceFee;
    }

    public void setBusinessServiceFee(BigDecimal businessServiceFee) {
        this.businessServiceFee = businessServiceFee;
    }

    public String getBusinessServiceFeeNum() {
        return businessServiceFeeNum;
    }

    public void setBusinessServiceFeeNum(String businessServiceFeeNum) {
        this.businessServiceFeeNum = businessServiceFeeNum;
    }

    public String getDealResellRate() {
        return dealResellRate;
    }

    public void setDealResellRate(String dealResellRate) {
        this.dealResellRate = dealResellRate;
    }

    public Long getMallMemberId() {
        return mallMemberId;
    }

    public void setMallMemberId(Long mallMemberId) {
        this.mallMemberId = mallMemberId;
    }

    public Long getOperatorId() {
        return operatorId;
    }

    public void setOperatorId(Long operatorId) {
        this.operatorId = operatorId;
    }

    @Override
    public String toString() {
        return "MallMemberPayStandard{" +
                "mallId=" + mallId +
                ", id=" + id +
                ", baseServiceFee=" + baseServiceFee +
                ", dateCreated=" + dateCreated +
                ", baseServiceFeeNum='" + baseServiceFeeNum + '\'' +
                ", lastUpdated=" + lastUpdated +
                ", businessServiceFee=" + businessServiceFee +
                ", businessServiceFeeNum='" + businessServiceFeeNum + '\'' +
                ", isDelete=" + isDelete +
                ", version=" + version +
                ", dealResellRate='" + dealResellRate + '\'' +
                ", mallMemberId=" + mallMemberId +
                ", operatorId=" + operatorId +
                '}';
    }
}
